
layui.use('element',function(){
    var element = layui.element,
        $ = layui.jquery;

    //绑定反馈信息按钮
    element.on('nav(navleft)', function(elem){
        var cc = elem[0].innerHTML;
        if (cc === '反馈信息') {  // 监听修改密码操作
            var index = layer.open({
                title: '请填写反馈信息',
                type: 2,
                shade: 0.2,
                maxmin:false,
                shadeClose: true,
                area: ['60%', '60%'],
                content: '/toLxfkIndex',
            });
            $(window).on("resize", function () {
                layer.full(index);
            });
        }
    });

    element.on('nav(demo)', function(elem){
        var cc = elem[0].innerHTML;
        console.log(123456789);
        if (cc === '修改密码') {  // 监听修改密码操作
            var index = layer.open({
                title: '请修改密码',
                type: 2,
                shade: 0.2,
                maxmin:false,
                shadeClose: true,
                area: ['30%', '40%'],
                content: '/toChangePassword',
            });
            $(window).on("resize", function () {
                layer.full(index);
            });
        }
    });
});

//招聘单位修改密码
function changePwd(){
    var index = layer.open({
        title: '请修改密码',
        type: 2,
        shade: 0.2,
        maxmin:false,
        shadeClose: true,
        area: ['30%', '40%'],
        content: '/toChangePassword',
    });
}